﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="xmltest.aspx.vb" Inherits="xmltest" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>XML Test Page</title>
<script language=javascript
    type="text/javascript">
    function CheckFilled()
  (document.form1.txtbox.value=="")
        {
        alert('You gotta enter something')
        return false
        }
    }
    function WipeOut()
    {
    return confirm('Wipe out what you wrote?')
    }


</script>
</head>
<body>
    <form id="form1" runat="server" onsubmit="return CheckFilled()" onreset="return WipeOut()"
    method="get" action="Default.aspx" >
       <br />
        &nbsp;&nbsp;<asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>
        <br />
        <br />
        &nbsp;
        <input type = "text" name="txtbox" id="txtbox" />
        <input type = "submit" id="Submit1" onclick="return Submit1_onclick()" />
        <input type="reset" />&nbsp;<br />
        <br />
        User Name:
        <asp:TextBox ID="txtUser" runat="server" MaxLength="25" Width="160px"></asp:TextBox><br />
        <br />
        Password: &nbsp; &nbsp;
        <asp:TextBox ID="txtPass" runat="server" TextMode="Password" Width="152px"></asp:TextBox>&nbsp;<asp:Button
            ID="btnOK" runat="server" Text="OK" /><br />
        <br />
        <asp:Label ID="lblPass" runat="server" Width="104px"></asp:Label>
        <br />
        <br />
        <select name="Biology" id="cboBiology">
            <optgroup label="Animals">
                <option label="Snake" value ="Snake">Snake</option>
                <option label="Elephant" value ="Elephant">Elephant</option>
                <option label="Dynomous" value ="Dynomous">Dynomous</option>
                <option label="Hipopotamus" value ="Hipopotamus">Hipopotamus</option>
                <option label="Horsefish" value ="Horsefish">Horsefish</option>
                <option label="Lizard" value ="Lizard">Lizard</option>
                <option label="Tiger" value ="Tiger">Dynomous</option>
            </optgroup>
            <optgroup label="Plant">
                <option label="------------" value ="------------">------------</option>
                <option label="Mongo" value ="Mongo">Mongo</option>
                <option label="Apple" value ="Apple">Apple</option>
                <option label="Grape" value ="Grape">Grape</option>
                <option label="Papaya" value ="Papaya">Papaya</option>
                <option label="Rudian" value ="Rudian">Rudian</option>
                <option label="Rambottan" value ="Rambottan">Rambottan</option>
                <option label="Longan" value ="Longan">Longan</option>
            </optgroup>
            <optgroup label="Others">
                <option label="------------" value ="------------">------------</option>
                <option label="Shakespeare" value ="Shakespeare">Shakespeare</option>
                <option label="Jack London" value ="Jack London">Jack London</option>
                <option label="lblEC" value ="lblEC">Thương mại điện tử</option>
                <option label="lblOOP" value ="lblOOP">Lập trình hướng đối tượng</option>
                <option label="lblSE" value ="lblSE">Nhập môn công nghệ phần mềm</option>
                <option label="lblOracle" value ="lblOracle">Oracle</option>
                <option label="lblAOS" value ="lblAOS">Hệ điều hành nâng cao</option>
            </optgroup>
        </select>
        <br />
        <br />
     </form>
</body>
</html>
